Merged
Conversation
24978f6 to
2a0b86f
Compare
7523a13 to
d7ced81
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the packaging process for uv-based projects by automatically detecting uv projects and ensuring the uv.lock file is updated and included in the package for improved runtime performance.
- Introduces helper functions to check uv command availability, determine uv projects, and run uv lock.
- Extends the packaging function to conditionally include the uv.lock file based on a new --nolock flag.
- Updates the project version in pyproject.toml to reflect new changes.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/uipath/_cli/cli_pack.py | Adds uv command checks, uv.lock update functions, and a new --nolock option for packaging |
| pyproject.toml | Updates project version to 2.0.73 |
Comments suppressed due to low confidence (1)
src/uipath/_cli/cli_pack.py:66
- It appears that 'console' is used for logging warnings, but there is no visible import or definition for it in this file. Ensure that 'console' is imported or defined to avoid potential runtime NameErrors.
)
| def is_uv_available(): | ||
| """Check if uv command is available in the system.""" | ||
| try: | ||
| subprocess.run(["uv", "--version"], capture_output=True, check=True) |
There was a problem hiding this comment.
Consider adding a timeout parameter to the subprocess.run calls (e.g., in is_uv_available and run_uv_lock) to prevent potential hangs if the 'uv' command is unresponsive.
d7ced81 to
2def747
Compare
radu-mocanu
approved these changes
Jul 1, 2025
2def747 to
4c050f6
Compare
This was referenced Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the packaging process to automatically detect uv projects and ensure
uv.lockfiles are up-to-date and included in packages. This provides significant runtime performance improvements for uv-based projects.You can opt-out by using
uipath pack --nolock.🚀 Faster Runtime Startup
When packages include an up-to-date
uv.lockfile, the serverless runtime environment will useuv sync --lockedwhich:📦 Better Package Consistency
Development Package